package com.creditnet.bmc.common.controller;

import com.creditnet.bmc.common.utils.ShiroUtils;
import com.creditnet.bmc.platform.domain.UserDO;

/**
 * Created by bjmaozhengwei on 2018/3/31.
 */
public class BaseController {

    public UserDO getUser() {
        return ShiroUtils.getUser();
    }

    public Long getUserId() {
        return getUser().getUserId();
    }

    public String getUsername() {
        return getUser().getUsername();
    }
}
